home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 June / MacFormat 25.iso / Shareware City / Developers / OutOfPhase1.1 Source / OutOfPhase Folder / Level 0 Macintosh 01Jan95 / Definitions.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-10-17  |  826 b   |  33 lines  |  [TEXT/KAHL]

  1. /* Definitions.h */
  2.  
  3. #ifndef Included_Definitions_h
  4. #define Included_Definitions_h
  5.  
  6. /* Definitions module depends on: */
  7. /* MiscInfo.h */
  8. /* Audit */
  9. /* Debug */
  10.  
  11. /* generally useful values and types */
  12. #ifdef __cplusplus
  13.     #define NIL (0)
  14. #else
  15.     #define NIL ((void*)0L)
  16. #endif
  17. #define True (0 == 0)
  18. #define False (0 != 0)
  19. typedef int MyBoolean;
  20. #define CODE4BYTES(a,b,c,d) ((a)*(1L << 24) + (b)*(1L << 16) + (c)*(1L << 8) + (d))
  21.  
  22. /* what line feed string is used on this system? */
  23. #define SYSTEMLINEFEED "\x0d"
  24.  
  25. /* generalized optimized block move operation.  Blocks will be handled */
  26. /* correctly even if the overlap */
  27. void                MoveData(char* Source, char* Destination, long NumBytes);
  28.  
  29. /* generalized block move operation.  Blocks can't overlap */
  30. void                CopyData(char* Source, char* Destination, long NumBytes);
  31.  
  32. #endif
  33.